#pragma once
#include "Object.h"
class Sprite;
class Box;
//enum CANNON_STATE
//{
//	UP, DOWN, ATTACK
//};
#define SHOOT_TIME 200
#define BULLET_COUNT 3
class Cannon :
	public Object
{

private :
	Sprite* _sAppear;
	Sprite* _sGun;	
	bool _isShooting;
	bool _isStop;
	float _angle;
	int index;
	int _bulletCount;
	float _shoottime;
	//CANNON_STATE _state;
public:
	Cannon(Box*);
	~Cannon(void);
	void init();
	void update();
	void render();
	float SetAngle();

	virtual Box* getCollisionBox();

};

